<div  id="dyhtml" style="margin-top: 30px">
    <table border="1" style="table-layout:fixed;word-break:break-all; width: 100%" >
        <tr>
            <td align="center" colspan="7" style="height: 30px; font-size: x-large">借款单</td>
            <td align="center" rowspan="2" style="color: red;">{$jk.no ?? ''}</td>
        </tr>
        <tr>
            <td align="center" colspan="7">{$jk.create_time ?? ''}</td>
        </tr>
        <tr>
            <td align="center">借款部门</td>
            <td align="center"  colspan="2">{$jk.bumen ?? ''}</td>
            <td align="center">借款人</td>
            <td align="center"  colspan="2">{$jk.username ?? ''}</td>
            <td align="center">借款方式</td>
            <td align="center"  colspan="1">{$jk.money.jk_fs ??''}</td>
        </tr>
        <tr>
            <td align="center" rowspan="4" style="height: 10px;">借款用途</td>
            <td rowspan="4" colspan="3">{$jk.money.sk_content ?? ''}</td>
            <td align="center" rowspan="4">收款单位</td>
        </tr>
        <tr>
            <td>名称</td>
            <td colspan="2">{$jk.money.sk_name ?? ''}</td>
        </tr>
        <tr>
            <td>账户</td>
            <td colspan="2">{$jk.money.sk_zh ?? ''}</td>
        </tr>
        <tr>
            <td>开户行</td>
            <td colspan="2">{$jk.money.sk_khh ?? ''}</td>
        </tr>
        <tr>
            <td align="center" colspan="2">借款金额(RMB大写)</td>
            <td colspan="4">{$jk.dx}</td>
            <td colspan="2">{$jk.money.jk_money ?? ''}</td>
        </tr>
        <tr>
            {foreach $data as $key=>$value}
            <td align="center">{$value.stepname ?? ''}</td>
            <td align="center">{$value.nickname ?? ''}{$value.comment ?? ''}
            <br/> {$value.completedtime ?? ''}
            </td>
            {/foreach}
        </tr>

    </table>
</div>
<button type="button" id='dy' class="layui-btn layui-btn-warm btn-embossed"
        style="background-color: #f39c12 !important; border-radius: 5px;">打印
</button>
<script src="/static/markdown/js/jquery.min.js"></script>
<script src="/static/admin/js/jquery.PrintArea.js"></script>
<script>
    $('#dy').on('click',function (res) {
        $("#dyhtml").printArea();
        return false; //阻止表单跳转。如果需要表单跳转，去掉这段即可。
    })
</script>